package cn.itcast.mapper;

import cn.itcast.pojo.Order;
import org.apache.ibatis.annotations.Param;

public interface OrderMapper {
    /**
     * 根据订单号查询订单和用户名
     * @param orderNumber
     * @return
     */
    Order queryOrderAndUserByOrderNumber(@Param("orderNumber") String orderNumber);
    Order queryOrderAndUserAndOrderdetailByOrderNumber(@Param("orderNumber") String orderNumber);
    Order queryOrderAndUserAndOrderdetailAndItemByOrderNumber(@Param("orderNumber") String orderNumber);
    Order queryOrderAndUserLazy(@Param("orderNumber") String orderNumber);
}
